package com.eastjet.maintenance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 巡检任务表
 * @TableName device_inspectiontask
 */
@TableName(value ="device_inspectiontask")
@Data
public class DeviceInspectiontask implements Serializable {
    /**
     * 巡检任务编号
     */
    @TableId(type = IdType.AUTO)
    private Integer inspectiontaskId;

    /**
     * 关联巡检计划编码
     */
    private String code;

    /**
     * 巡检状态( device_inspectiontask_type表 1-未执行 2-执行中 3-已完成 4-逾期)
     */
    private String inspectiontaskTypeId;

    /**
     * 巡检任务名称
     */
    private String inspectiontaskName;

    /**
     * 巡检任务编码(device_patrolscheme 巡检计划表已审核的任务编码)
     */
    private String inspectiontaskCode;

    /**
     * 计划类型(1-日计划 2-周计划 3-月计划 4-季计划 5-年计划))
     */
    private String inspectiontaskDaytypeId;

    /**
     * 任务计划序号
     */
    private String inspectiontaskNumber;

    /**
     * 开始执行时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date inspectiontaskOntime;

    /**
     * 结束执行时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date inspectiontaskUntime;

    /**
     * 实际开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date inspectiontaskOkontime;

    /**
     * 实际结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date inspectiontaskOkuntime;

    /**
     * 巡检用时
     */
    private String inspectiontaskTime;

    /**
     * 点检班组
     */
    private String inspectiontaskClass;

    /**
     * 点检人
     */
    private String inspectiontaskPerson;

    /**
     * 应检设备数
     */
    private Integer inspectiontaskInspection;

    /**
     * 跳过设备数
     */
    private Integer inspectiontaskSkip;

    /**
     * 漏检设备数
     */
    private Integer inspectiontaskFn;

    /**
     * 异常设备数
     */
    private String inspectiontaskExceptional;

    /**
     * 调整原因
     */
    private String cause;

    /**
     * 创建人
     */
    private String insertPerson;

    /**
     * 创建时间
     */
    private Date insertTime;

    /**
     * 更新人
     */
    private String updatePerson;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 逻辑删除
     */
    private Integer isDelete;

    @Override
    public String toString() {
        return "DeviceInspectiontask{" +
                "inspectiontaskId=" + inspectiontaskId +
                ", code='" + code + '\'' +
                ", inspectiontaskTypeId='" + inspectiontaskTypeId + '\'' +
                ", inspectiontaskName='" + inspectiontaskName + '\'' +
                ", inspectiontaskCode='" + inspectiontaskCode + '\'' +
                ", inspectiontaskDaytypeId='" + inspectiontaskDaytypeId + '\'' +
                ", inspectiontaskNumber='" + inspectiontaskNumber + '\'' +
                ", inspectiontaskOntime=" + inspectiontaskOntime +
                ", inspectiontaskUntime=" + inspectiontaskUntime +
                ", inspectiontaskOkontime=" + inspectiontaskOkontime +
                ", inspectiontaskOkuntime=" + inspectiontaskOkuntime +
                ", inspectiontaskTime='" + inspectiontaskTime + '\'' +
                ", inspectiontaskClass='" + inspectiontaskClass + '\'' +
                ", inspectiontaskPerson='" + inspectiontaskPerson + '\'' +
                ", inspectiontaskInspection=" + inspectiontaskInspection +
                ", inspectiontaskSkip=" + inspectiontaskSkip +
                ", inspectiontaskFn=" + inspectiontaskFn +
                ", inspectiontaskExceptional='" + inspectiontaskExceptional + '\'' +
                ", cause='" + cause + '\'' +
                ", insertPerson='" + insertPerson + '\'' +
                ", insertTime=" + insertTime +
                ", updatePerson='" + updatePerson + '\'' +
                ", updateTime=" + updateTime +
                ", isDelete=" + isDelete +
                '}';
    }
}